<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="UTF-8">
    <title>BaseClass (com.package1/baseModule:1.2.3) • Docsite Title</title>
    <script src="../../../scripts/pkldoc.js" defer="defer"></script>
    <script type="module">
      import perPackageData from "../../../data/com.package1/_/baseModule/BaseClass.json" with { type: "json" }
      import perPackageVersionData from "../../../data/com.package1/1.2.3/baseModule/BaseClass.json" with { type: "json" }

      runtimeData.knownVersions(perPackageData.knownVersions, "1.2.3");
      runtimeData.knownUsagesOrSubtypes("known-subtypes", perPackageVersionData.knownSubtypes);
      runtimeData.knownUsagesOrSubtypes("known-usages", perPackageVersionData.knownUsages);
            </script>
    <script src="../../../scripts/scroll-into-view.min.js" defer="defer"></script>
    <link href="../../../styles/pkldoc.css" media="screen" type="text/css" rel="stylesheet">
    <link rel="icon" type="image/svg+xml" href="../../../images/favicon.svg">
    <link rel="apple-touch-icon" sizes="180x180" href="../../../images/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="../../../images/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="../../../images/favicon-16x16.png">
  </head>
  <body onload="onLoad()">
    <header>
      <div id="doc-title"><a href="../../../index.html">Docsite Title</a></div>
      <div id="search"><label for="search-input"><i id="search-icon" class="material-icons">search</i></label><input id="search-input" type="search" placeholder="Click or press 'S' to search this package" autocomplete="off" data-package-name="com.package1" data-package-version="1.2.3" data-package-url-prefix="../" data-module-name="com.package1.baseModule" data-class-name="BaseClass" data-root-url-prefix="../../../"></div>
    </header>
    <main><a class="declaration-parent-link" href="../../../index.html">Docsite Title</a> &gt; <a class="declaration-parent-link" href="../index.html">com.package1</a> &gt; <a class="declaration-parent-link" href="index.html">com.package1.baseModule</a>
      <h1 id="declaration-title">BaseClass<span id="declaration-version">1.2.3</span></h1>
      <ul class="member-group-links">
        <li><a href="#_methods">Methods</a></li>
      </ul>
      <div id="_overview" class="anchor"> </div>
      <div id="_declaration" class="member">
        <div class="member-signature">class <span class="name-decl">BaseClass</span></div>
        <dl class="member-info">
          <dt class="runtime-data hidden">Known subtypes in package:</dt>
          <dd id="known-subtypes" class="runtime-data hidden"></dd>
          <dt class="runtime-data hidden">Known usages in package:</dt>
          <dd id="known-usages" class="runtime-data hidden"></dd>
          <dt class="runtime-data hidden">All versions:</dt>
          <dd id="known-versions" class="runtime-data hidden"></dd>
        </dl>
      </div>
      <div class="member-group">
        <div id="_methods" class="anchor"> </div>
        <h2 class="member-group-title">Methods<span class="toggle-inherited-members">(<span class="toggle-inherited-members-link button-link">show inherited</span>)</span></h2>
        <ul>
          <li>
            <div id="getClass()" class="anchor"> </div>
            <div class="member inherited expandable hidden collapsed"><a class="member-selflink material-icons" href="#getClass()">link</a>
              <div class="member-left">
                <div class="member-modifiers">function </div>
              </div>
              <div class="member-main">
                <div class="member-signature"><span class="context"><a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Any.html" class="name-ref">Any</a>.</span><span class="name-decl">getClass</span>(): <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Class.html" class="name-ref">Class</a><span class="context"> (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html" class="name-ref">pkl.base</a>)</span><a class="member-source-link" href="https://github.com/apple/pkl/blob/0.24.0/stdlib/base.pkl#L123-L456">Source</a></div>
                <div class="doc-comment"><p>Returns the class of <code>this</code>.</p></div>
              </div>
            </div>
          </li>
          <li>
            <div id="toString()" class="anchor"> </div>
            <div class="member inherited expandable hidden collapsed with-expandable-docs"><i class="material-icons expandable-docs-icon">expand_more</i><a class="member-selflink material-icons" href="#toString()">link</a>
              <div class="member-left">
                <div class="member-modifiers">function </div>
              </div>
              <div class="member-main">
                <div class="member-signature"><span class="context"><a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Any.html" class="name-ref">Any</a>.</span><span class="name-decl">toString</span>(): <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/String.html" class="name-ref">String</a><span class="context"> (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html" class="name-ref">pkl.base</a>)</span><a class="member-source-link" href="https://github.com/apple/pkl/blob/0.24.0/stdlib/base.pkl#L123-L456">Source</a></div>
                <div class="doc-comment"><p>Returns a string representation of <code>this</code>.</p></div>
                <div class="doc-comment expandable hidden collapsed"><p>This method is used to convert the values of string interpolation expressions to strings.</p></div>
              </div>
            </div>
          </li>
          <li>
            <div id="ifNonNull()" class="anchor"> </div>
            <div id="ifNonNull().Result" class="anchor-param1"> </div>
            <div id="ifNonNull().transform" class="anchor-param2"> </div>
            <div class="member inherited expandable hidden collapsed with-expandable-docs"><i class="material-icons expandable-docs-icon">expand_more</i><a class="member-selflink material-icons" href="#ifNonNull()">link</a>
              <div class="member-left">
                <div class="member-modifiers">function </div>
              </div>
              <div class="member-main">
                <div class="member-signature"><span class="context"><a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Any.html" class="name-ref">Any</a>.</span><span class="name-decl">ifNonNull</span>&lt;<a class="param1">Result</a>&gt;(<span class="param2">transform</span>: (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html#NonNull" class="name-ref">NonNull</a>) -&gt; <a href="BaseClass.html#ifNonNull().Result" class="name-ref">Result</a>): <a href="BaseClass.html#ifNonNull().Result" class="name-ref">Result</a>?<span class="context"> (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html" class="name-ref">pkl.base</a>)</span><a class="member-source-link" href="https://github.com/apple/pkl/blob/0.24.0/stdlib/base.pkl#L123-L456">Source</a></div>
                <div class="doc-comment"><p>Returns <code>this |&gt; transform</code> if <code>this</code> is non-null, and <code>null</code> otherwise.</p></div>
                <div class="doc-comment expandable hidden collapsed"><p>This method is the complement of the <code>??</code> operator and the equivalent of an <code>Option</code> type's
<code>map</code> and <code>flatMap</code> methods.</p></div>
              </div>
            </div>
          </li>
          <li>
            <div id="hasProperty()" class="anchor"> </div>
            <div id="hasProperty().name" class="anchor-param1"> </div>
            <div class="member inherited expandable hidden collapsed"><a class="member-selflink material-icons" href="#hasProperty()">link</a>
              <div class="member-left">
                <div class="member-modifiers">function </div>
              </div>
              <div class="member-main">
                <div class="member-signature"><span class="context"><a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Typed.html" class="name-ref">Typed</a>.</span><span class="name-decl">hasProperty</span>(<span class="param1">name</span>: <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/String.html" class="name-ref">String</a>): <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Boolean.html" class="name-ref">Boolean</a><span class="context"> (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html" class="name-ref">pkl.base</a>)</span><a class="member-source-link" href="https://github.com/apple/pkl/blob/0.24.0/stdlib/base.pkl#L123-L456">Source</a></div>
                <div class="doc-comment"><p>Tells if this object has a property with the given <code>name</code>.</p></div>
              </div>
            </div>
          </li>
          <li>
            <div id="getProperty()" class="anchor"> </div>
            <div id="getProperty().name" class="anchor-param1"> </div>
            <div class="member inherited expandable hidden collapsed with-expandable-docs"><i class="material-icons expandable-docs-icon">expand_more</i><a class="member-selflink material-icons" href="#getProperty()">link</a>
              <div class="member-left">
                <div class="member-modifiers">function </div>
              </div>
              <div class="member-main">
                <div class="member-signature"><span class="context"><a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Typed.html" class="name-ref">Typed</a>.</span><span class="name-decl">getProperty</span>(<span class="param1">name</span>: <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/String.html" class="name-ref">String</a>): unknown<span class="context"> (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html" class="name-ref">pkl.base</a>)</span><a class="member-source-link" href="https://github.com/apple/pkl/blob/0.24.0/stdlib/base.pkl#L123-L456">Source</a></div>
                <div class="doc-comment"><p>Returns the value of the property with the given <code>name</code>.</p></div>
                <div class="doc-comment expandable hidden collapsed"><p>Throws if a property with this name does not exist.</p></div>
              </div>
            </div>
          </li>
          <li>
            <div id="getPropertyOrNull()" class="anchor"> </div>
            <div id="getPropertyOrNull().name" class="anchor-param1"> </div>
            <div class="member inherited expandable hidden collapsed with-expandable-docs"><i class="material-icons expandable-docs-icon">expand_more</i><a class="member-selflink material-icons" href="#getPropertyOrNull()">link</a>
              <div class="member-left">
                <div class="member-modifiers">function </div>
              </div>
              <div class="member-main">
                <div class="member-signature"><span class="context"><a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Typed.html" class="name-ref">Typed</a>.</span><span class="name-decl">getPropertyOrNull</span>(<span class="param1">name</span>: <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/String.html" class="name-ref">String</a>): unknown?<span class="context"> (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html" class="name-ref">pkl.base</a>)</span><a class="member-source-link" href="https://github.com/apple/pkl/blob/0.24.0/stdlib/base.pkl#L123-L456">Source</a></div>
                <div class="doc-comment"><p>Returns the value of the property with the given <code>name</code>.</p></div>
                <div class="doc-comment expandable hidden collapsed"><p>Returns <code>null</code> if a property with this name does not exist.</p></div>
              </div>
            </div>
          </li>
          <li>
            <div id="toDynamic()" class="anchor"> </div>
            <div class="member inherited expandable hidden collapsed"><a class="member-selflink material-icons" href="#toDynamic()">link</a>
              <div class="member-left">
                <div class="member-modifiers">function </div>
              </div>
              <div class="member-main">
                <div class="member-signature"><span class="context"><a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Typed.html" class="name-ref">Typed</a>.</span><span class="name-decl">toDynamic</span>(): <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Dynamic.html" class="name-ref">Dynamic</a><span class="context"> (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html" class="name-ref">pkl.base</a>)</span><a class="member-source-link" href="https://github.com/apple/pkl/blob/0.24.0/stdlib/base.pkl#L123-L456">Source</a></div>
                <div class="doc-comment"><p>Converts this object to a <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Dynamic.html"><code>Dynamic</code></a> object.</p></div>
              </div>
            </div>
          </li>
          <li>
            <div id="toMap()" class="anchor"> </div>
            <div class="member inherited expandable hidden collapsed"><a class="member-selflink material-icons" href="#toMap()">link</a>
              <div class="member-left">
                <div class="member-modifiers">function </div>
              </div>
              <div class="member-main">
                <div class="member-signature"><span class="context"><a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Typed.html" class="name-ref">Typed</a>.</span><span class="name-decl">toMap</span>(): <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Map.html" class="name-ref">Map</a>&lt;<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/String.html" class="name-ref">String</a>, unknown&gt;<span class="context"> (<a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/index.html" class="name-ref">pkl.base</a>)</span><a class="member-source-link" href="https://github.com/apple/pkl/blob/0.24.0/stdlib/base.pkl#L123-L456">Source</a></div>
                <div class="doc-comment"><p>Converts this object to a <a href="https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/base/Map.html"><code>Map</code></a>.</p></div>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </main>
  </body>
</html>
